<?php
/* 
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of RevisorPaperController
 *
 * @author cshepherd
 */
class RevisorPaperController extends Controller {
    public function updateEvaluar(){        
        $vars = array();
        $objRevisorPaper = new RevisorPaper();
        $objRevisorPaper->evaluarPaper($_POST);
        $_SESSION['msn_operacion'] = "<center><div id='msn_operacion_true'><div style='padding-left:30px;'>Actualizacion realizada.</div></div></center>";

        $vars = array();
        $vars['page_autor'] = 1;
        $objIdioma = new Idioma;
        $vars['data_idioma'] = $objIdioma->listar('TRUE', 1, 3, 'nombre', 'DESC');

        $objPaper = new Paper();
        $objPaperTO = new PaperTO();
        $objPaperTO = $objPaper->obtenerPaper($_POST);
        $vars['objPaperTO'] = $objPaperTO;

        $objRevisorPaperTO = new RevisorPaperTO();
        $objRevisorPaperTO = $objRevisorPaper->buscarRevisorPaper($_POST);
        $vars['objRevisorPaperTO'] = $objRevisorPaperTO;
        $vars['scripts'] = 'evaluacion_paper,jquery-1.3.2.min,jquery.delay,nicEdit,revisor';
        
        $this->view->show('evaluar_form','intranet',$vars);
    }
}
?>
